// TestComDlg.h : header file
//

#if !defined(AFX_TESTCOMDLG_H__75AA35DF_D63F_4B5E_96E1_453C14349F7E__INCLUDED_)
#define AFX_TESTCOMDLG_H__75AA35DF_D63F_4B5E_96E1_453C14349F7E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CTestComDlg dialog
#include "SerialPort.h"
#include <malloc.h>  
#include <snmp.h>  
#include <mgmtapi.h>  
#pragma comment(lib,"Mgmtapi.lib")  
#pragma comment(lib,"Snmpapi.lib") 

 #include <string>


class CTestComDlg : public CDialog
{
// Construction
public:
	CTestComDlg(CWnd* pParent = NULL);	// standard constructor
	CSerialPort port;
	CSerialPort portUPS;
	unsigned short Conver16To10(char * p);
    long GetFreeVolumelen(char *p);
	bool existVolume(char*p);
	CString m_CurrentV;
	CString m_CurrentT;
	CString m_IsOnLine;
	bool    m_OpenCom1;
	bool    m_OpenCom2;
	bool    m_IsOnTimer;
	void    WriteLog(CString str); 

	int     m_LineStatus;
	int     m_DiskError;

   // BOOL AsnPrint(AsnAny* any, CString& strbuf, BOOL bShowType)   ;
// Dialog Data
	//{{AFX_DATA(CTestComDlg)
	enum { IDD = IDD_TESTCOM_DIALOG };
	CString	m_strBackMsg;
	CString	m_strSoftBackMsg;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTestComDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTestComDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBtnChongzhi();
	afx_msg void OnBtnOpen();
	afx_msg LONG OnComm(WPARAM ch, LPARAM port);
	afx_msg void OnCleanmsg();
	afx_msg void OnButton1();
	afx_msg void OnBtnOpen2();
	afx_msg void OnBtnClose2();
	afx_msg void OnBtnClose();
	afx_msg void OnButton2();
	afx_msg void OnButton5();
	afx_msg void OnButton4();
	afx_msg void OnButton3();
	afx_msg void OnButton8();
	afx_msg void OnButton9();
	afx_msg void OnButton7();
	afx_msg void OnButton10();
	afx_msg void OnButton6();
	afx_msg void OnButton12();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnButton13();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TESTCOMDLG_H__75AA35DF_D63F_4B5E_96E1_453C14349F7E__INCLUDED_)
